﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Data;
using DataExtractionLanguage;

namespace WindowsWrapperEditor
{
    public class ResultTab : TabPage
    {
        private DataGridView grid = null;

        public ResultTab(DataTable table)
        {
            grid = new DataGridView();
            grid.DataSource = table;
            grid.Dock = DockStyle.Fill;
            Controls.Add(grid);
            Text = table.TableName;
        }

        public ResultTab(List<ErrorInfo> errorList)
        {
            grid = new DataGridView();
            grid.DataSource = errorList;
            grid.Dock = DockStyle.Fill;
            Controls.Add(grid);
            Text = "Error and Warning";
        }
    }
}
